﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Entity;

namespace IRepository
{
    public interface IInventoryListRepository
    {
        Task<InventoryListEntity> AddAsync(InventoryListEntity entity);
        Task<InventoryListEntity> GetByIdAsync(int id);
        Task<InventoryListEntity> GetByOrderNoAsync(string orderNo);
        Task UpdateAsync(InventoryListEntity entity);
        Task DeleteByListIdAsync(int listId);
        Task<PaginationResult<InventoryListEntity>> GetPagedListAsync(int pageIndex, int pageSize, Dictionary<string, object> filter, string sort);
        Task<InventoryListEntity> GetOngoingInventoryByWarehouseAsync(string warehouseName);
    }
}